﻿namespace AnyOffice.Model
{
    using System;

    public class EmailData
    {
        protected object _attachmentId;
        protected int _boxId;
        protected object _content;
        protected object _copyToId;
        protected int _deleteFlag;
        protected int _emailId = -1;
        protected string _fromId = string.Empty;
        protected int _important;
        protected bool _readFlag;
        protected object _secretToId;
        protected DateTime _sendTime = DateTime.Now;
        protected string _subject = string.Empty;
        protected string _toId = string.Empty;
        protected string _toId2 = string.Empty;
        protected int _totalSize;

        public string AttachmentId
        {
            get
            {
                return (string) this._attachmentId;
            }
            set
            {
                this._attachmentId = value;
            }
        }

        public bool AttachmentIdIsNull
        {
            get
            {
                return (this._attachmentId == null);
            }
            set
            {
                if (value)
                {
                    this._attachmentId = null;
                }
            }
        }

        public int BoxId
        {
            get
            {
                return this._boxId;
            }
            set
            {
                this._boxId = value;
            }
        }

        public string Content
        {
            get
            {
                return (string) this._content;
            }
            set
            {
                this._content = value;
            }
        }

        public bool ContentIsNull
        {
            get
            {
                return (this._content == null);
            }
            set
            {
                if (value)
                {
                    this._content = null;
                }
            }
        }

        public string CopyToId
        {
            get
            {
                return (string) this._copyToId;
            }
            set
            {
                this._copyToId = value;
            }
        }

        public bool CopyToIdIsNull
        {
            get
            {
                return (this._copyToId == null);
            }
            set
            {
                if (value)
                {
                    this._copyToId = null;
                }
            }
        }

        public int DeleteFlag
        {
            get
            {
                return this._deleteFlag;
            }
            set
            {
                this._deleteFlag = value;
            }
        }

        public int EmailId
        {
            get
            {
                return this._emailId;
            }
            set
            {
                this._emailId = value;
            }
        }

        public string FromId
        {
            get
            {
                return this._fromId;
            }
            set
            {
                this._fromId = value;
            }
        }

        public int Important
        {
            get
            {
                return this._important;
            }
            set
            {
                this._important = value;
            }
        }

        public bool ReadFlag
        {
            get
            {
                return this._readFlag;
            }
            set
            {
                this._readFlag = value;
            }
        }

        public string SecretToId
        {
            get
            {
                return (string) this._secretToId;
            }
            set
            {
                this._secretToId = value;
            }
        }

        public bool SecretToIdIsNull
        {
            get
            {
                return (this._secretToId == null);
            }
            set
            {
                if (value)
                {
                    this._secretToId = null;
                }
            }
        }

        public DateTime SendTime
        {
            get
            {
                return this._sendTime;
            }
            set
            {
                this._sendTime = value;
            }
        }

        public string Subject
        {
            get
            {
                return this._subject;
            }
            set
            {
                this._subject = value;
            }
        }

        public string ToId
        {
            get
            {
                return this._toId;
            }
            set
            {
                this._toId = value;
            }
        }

        public string ToId2
        {
            get
            {
                return this._toId2;
            }
            set
            {
                this._toId2 = value;
            }
        }

        public int TotalSize
        {
            get
            {
                return this._totalSize;
            }
            set
            {
                this._totalSize = value;
            }
        }
    }
}

